{extends file="layout.tpl"}
{block name="content"}
<div class="box-content box-detail-music">
	<div class="detail-title clr _bdot _mp20">
			<span class="fl strong _f11">
				{$box_title} {$music['name']} <img alt="" src="{url path="images/navRow.png"}">
			</span>
		</div>
	<div class="mcontent">
		<div class="p5 intro">
			<h2>
				<span class="m-name">
					{$ringtone['name']}
				</span>
			</h2>
			<div id="player">
			
			</div>
			<script type="text/javascript" src="{url path="js/swfobject.js"}"></script>
			<script type='text/javascript'>
				var so = new SWFObject('{base_url()}media/player/player.swf','mpl','618','390','9','#FFF');  
				so.addParam('allowfullscreen','true');
				so.addParam('allowscriptaccess','always');
				so.addParam('autostart','true');
				so.addParam('wmode','transparent');								
				so.addVariable('skin','{base_url()}media/player/bekle/bekle.xml');
				so.addVariable('volume','100');
				so.addVariable('autostart','true');
				so.addVariable('width','618');
				so.addVariable('height','390');
				so.addVariable('file','{base_url()}{$ringtone['filename']}');
				so.write('player');
			</script>
			<object id="MediaPlayer1" width=300 height=291 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"><param name="FileName" value="{base_url()}{$ringtone['filename']}"><param name="ShowStatusBar" value="true"><param name="autoStart" value="False"><param name="DefaultFrame" value="mainFrame"><embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" src="{base_url()}{$ringtone['filename']}" align="middle" width=300 height=291 autostart=1 defaultframe="rightFrame" showstatusbar=false></embed></object>
			<div><span class="m-data-player"><img alt="Dung lượng" src="{url path="images/icon/rating_star.png"}" /> Dung lượng: {$ringtone['filesize']}</span></div>
			<div><span class="m-data-player"><img alt="Thể loại" src="{url path="images/icon/playing.gif"}" /> {__('Thể loại')}: <a title="{$ringtone['media_type_name']}" href="{site_url($ringtone['media_type_link'])}">{$ringtone['media_type_name']}</a></span></div>
			<div><span class="m-download"><img alt="Dowload" src="{url path="images/icon/download.gif"}" /> <a title="{__('Tải về')}" href="{$ringtone['download']}">{__('Tải về')}</a></span></div>
		</div>
	</div>
	<div class="mt10">
		<h3 class="bgh3">{$box_title} cùng thể loại</h3>
		<div class="mcontent">
			{medias type="by_type" media_type_id="{$ringtone['media_type_id']}" curent_id="{$ringtone['media_id']}"}
				<ol class="m-list-type">
					{foreach $ringtones_by_types as $ringtone_by_type}
						<li>
							<img alt="Dung lượng" src="{url path="images/icon/arrow.png"}" />
							<a href="{$ringtone_by_type['link']}" title="{$ringtone_by_type['name']}">{$ringtone_by_type['name']}</a>
						</li>
					{/foreach}
				</ol>
			{/medias}
		</div>
	</div>
</div>
{/block}